package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Room;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.RoomQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Room record);

    Room selectByPrimaryKey(Long roomId);

    List<Room> selectAll();

    int updateByPrimaryKey(Room record);

    List<Room> selectForList(RoomQuery qo);

    /**
     * 修改房间状态  退房
     * @param room
     */
    void updateByRoomType(Room room);

}